﻿<!DOCTYPE html>
<html>
<head>
   <title>Logging CSV files with Drivesim on Windows</title>
   <meta name="generator" content="Help & Manual">
   <meta name="keywords" content="">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link type="text/css" href="default.css" rel="stylesheet">
   <link type="text/css" href="custom.css" rel="stylesheet">
   <script type="text/javascript" src="nsh.js"></script>
   
<!-- non-scrolling headers for CHM and browser-based help, local styles-->
<style TYPE="text/css" media="screen"> 
   <!-- 
   body {    
      margin:0; 
      padding:0; 
      overflow: auto; 
      background: #edede9; 
   } 
   #idheader { 
      width:100%; 
      height:auto; 
      padding: 0; 
      margin: 0;     
} 
    #idheaderbg  {
    background: #E40A00; 
}
#idheadernowrap  {
    white-space:nowrap; 
}
    ul {list-style-type: lower-roman}
   -->
   </style>
   
<style TYPE="text/css" MEDIA="print">
<!--
/* Hide navigation links and add space between header
     and text in the printed version. Not valid for eBooks. */
#idnav { display:none;	 }
.topichead { padding: 5px 5px 20px 5px; }
-->
</style>   
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="helpman_settings.js"></script>
   <script type="text/javascript" src="helpman_topicinit.js"></script>

   <script type="text/javascript">
     HMSyncTOC("index.html", "vbk_tut_logging_csv_files_with_drivesi.htm");
   </script>
   <script type="text/javascript" src="highlight.js"></script>
   <script type="text/javascript">
     $(document).ready(function(){highlight();});
   </script>
</head>
<body>

<!--ZOOMSTOP-->

<div id="idheader" >
<div id="idheaderbg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
       style="margin: 0px; color: #D7D7D7;">

  <tr valign="middle">
    <td align="left" valign="middle" class="topichead">
    <!--<div id="idheadernowrap">-->
    <p class="crumbs" id="idnav"><b>Navigation:</b>&nbsp;
   
   VI-DriveSim 19.2 on Windows &gt; VI-DriveSim 19.2 Tutorials&nbsp;&gt;</p>
      <h1 class="p_Heading1" style="page-break-after: avoid;"><span class="f_Heading1">Logging CSV files with VI-DriveSim on Windows</span></h1>

    <!--</div>-->
    </td>
    <td align="right" width="180" valign="middle" class="topichead" id="idnav">
    <div id="idheadernowrap">
    <a href="javascript: print();"
    		onmouseover="document.images.prntr.src='print_a.png'" 
        onmouseout="document.images.prntr.src='print_n.png'"
        ><img name="prntr" border="0" alt="Print this Topic" title="Print this Topic" src="print_n.png"
        ></a>&nbsp;&nbsp;
     <a href="vbk_tut_running_matlab_with_vi-drivesi.htm"
        onmouseover="document.images.prev.src='back_a.png'" 
        onmouseout="document.images.prev.src='back_n.png'"
        ><img name=prev src="back_n.png" border=0 alt="Previous page"
        ></a><a href="drvsim_i_simwb_inst.htm"
        onmouseover="document.images.main.src='top_a.png'" 
        onmouseout="document.images.main.src='top_n.png'"><img name=main src="top_n.png" border=0 alt="Return to chapter overview"
        ></a><a href="drvsim_tut_running_ni-pxi_simulation_with.htm"
        onmouseover="document.images.next.src='next_a.png'" 
        onmouseout="document.images.next.src='next_n.png'"><img name=next src="next_n.png" border=0 alt="Next page"
        ></a>
    </div>
    </td>
  </tr>
</table>
</div>

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  

</div>  



<div id="idcontent"><div id="innerdiv"> 
<!--ZOOMRESTART-->
<p class="p_Normal">If you want to log a .csv file with all the channels of the simulation, you have to follow these steps.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">With a text editor, open the file:</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal"><span style="font-style: italic;">[...]/VI-DriveSim 19/standalone/iodb_cfg_drv.txt</span>  &nbsp; &nbsp; &nbsp; &nbsp;if you are using the <span style="font-weight: bold;">drvsim_vidriver.bat</span> test.</p>
<p class="p_Normal"><span style="font-style: italic;">[...]/VI-DriveSim 19/standalone/iodb_cfg_res.txt</span>  &nbsp; &nbsp; &nbsp; &nbsp;if you are using the <span style="font-weight: bold;">drvsim_replay.bat</span> test.</p>
<p class="p_Normal"><span style="font-style: italic;">[...]/VI-DriveSim 19/standalone/iodb_cfg_mtl.txt</span>  &nbsp; &nbsp; &nbsp; &nbsp;if you are using the <span style="font-weight: bold;">drvsim_simulink.bat</span> test.</p>
<p class="p_Normal"><span style="font-style: italic;">[...]/VI-DriveSim 19/standalone/iodb_cfg_g25.txt</span>  &nbsp; &nbsp; &nbsp; &nbsp;if you are using the <span style="font-weight: bold;">drvsim_g25.bat</span> test.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">and uncomment (remove the &quot;#&quot; at the beginning of the line) the line referring to the iodb_csv.exe process as shown below.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_tutorial_csv_cfg" width="670" height="195" style="margin:0px auto 0px auto;width:670px;height:195px;border:none" src="drvsim_tutorial_csv_cfg.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal">In order to select which channels to log, use the <span style="font-style: italic;">CSV Save</span> panel in the interface as shown below</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_clipe35" width="876" height="320" style="margin:0px auto 0px auto;width:876px;height:320px;border:none" src="drvsim_clipe35.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">This selection is global, that means that is valid for all the simulations and for all the models loaded.</p>
<p class="p_Normal" style="text-align: left;">Last thing that remains is to enable the realtime dump to file, setting 1 as initial value to VI-DriveSim Inputs and then click <span style="font-style: italic;">save</span>.</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_clip32415" width="877" height="456" style="margin:0px auto 0px auto;width:877px;height:456px;border:none" src="drvsim_clip32415.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">For VI-CarRealTime Ouputs signal another behaviour is also possible.</p>
<p class="p_Normal" style="text-align: left;">If you prefer to disable an Output Channel only for a particular model, not for all of them, you can leave it enabled in  <span style="font-style: italic;">[your installation path]/VI-DriveSim 19/standalone/CSV_drivesim_vicrt_signals.sig </span>and disable it directly in VI-CarRealTime.</p>
<p class="p_Normal" style="text-align: left;">First of all you need to enable this behaviour by setting the <span style="font-weight: bold;">VIDRIVESIM_CSV_OUT_MAP</span> configuration to 1 in the <span style="font-weight: bold;">iodb_csv</span> section. Save the new configuration as shown below:</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_clip576" width="876" height="648" style="margin:0px auto 0px auto;width:876px;height:648px;border:none" src="drvsim_clip576.png"/></p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">After this, open your .xml model in VI-CarRealTime.</p>
<p class="p_Normal" style="text-align: left;">Go to the Output channels tab, select the output channel you want to disable and configure it as not active. Repeat this for all the output channels you are interested in, and then save the modifications.</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_tutorial_csv_crt_disable_sig" width="994" height="366" style="margin:0px auto 0px auto;width:994px;height:366px;border:none" src="drvsim_tutorial_csv_crt_disable_sig.png"/></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p style="text-align: left; margin: 0px 0px 0px 24px;">Next time you run the simulation the VI-CarRealTime disabled output channels will not be logged into the CSV file, even if still enabled in <span style="font-style: italic;">[your installation path]/VI-DriveSim 19/standalone/CSV_drivesim_vicrt_signals.sig</span>.</p>
<p style="text-align: left; margin: 0px 0px 0px 24px;"><span style="color: #000000;">&nbsp;</span></p>
<p class="p_Normal" style="text-align: center;">&nbsp;</p>

<!--ZOOMSTOP-->
</div></div>
<script type="text/javascript"> 
<!-- 
var lastSlashPos = document.URL.lastIndexOf("/") >
document.URL.lastIndexOf("\\") ? document.URL.lastIndexOf("/") :
document.URL.lastIndexOf("\\");
if( document.URL.substring( lastSlashPos + 1, lastSlashPos + 4
).toLowerCase() != "~hh" )
{
    nsrInit();
}
--> 
</script> 
</body>
</html>
